package com.zttek.videoShareProject.modules.web;


import com.zttek.videoShareProject.modules.model.User;
import com.zttek.videoShareProject.modules.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author CBY
 * @since 2018-07-03
 */
@Controller
@RequestMapping("/modu/user")
public class UserController {
	@Autowired
    private IUserService iUserService;
	@RequestMapping("login")
    public ModelAndView login(@RequestParam(value ="account")String account,
                      @RequestParam(value = "password")String password){
	    ModelAndView modelAndView =new ModelAndView();
	    User user=iUserService.selectUserByAccount(account);
	    if(user!=null){

        }
        return null;
    }
}
